package com.example.testmarkwon

import android.app.Application
import io.noties.markwon.Markwon
import io.noties.markwon.core.CorePlugin
import io.noties.markwon.ext.tables.TablePlugin

class App : Application() {

    companion object {
        lateinit var app: App
    }

    lateinit var markdown: Markwon

    override fun onCreate() {
        super.onCreate()
        app = this

        markdown = Markwon
            .builder(this)
            .usePlugin(CorePlugin.create())
            .usePlugin(TablePlugin.create(this))
            .usePlugin(MarkdownPlugin())
            .build()
    }
}

